package com.molinari.coding.activities.first;

import android.os.Bundle;
import android.widget.Button;

import com.molinari.androidstructure.activity.BaseActivity;
import com.molinari.androidstructure.listener.OnClickApriActivity;
import com.molinari.coding.R;
import com.molinari.coding.activities.login.LoginActivity;
import com.molinari.coding.activities.register.RegisterActivity;

public class FirstActivity extends BaseActivity {

	Button registra = null;
	Button login = null;
	
	@Override
	protected int getIdLayout() {
		return R.layout.first_activity;
	}

	@Override
	protected void onCreateCustom(Bundle savedInstanceState) throws Exception {
		registra = loadButton(registra, R.id.btnRegister);
		registra.setOnClickListener(new OnClickApriActivity(RegisterActivity.class, this));
		
		login = loadButton(login, R.id.btnLogin);
		login.setOnClickListener(new OnClickApriActivity(LoginActivity.class, this));
		
	}

	@Override
	public int getIdMenu() {
		return R.menu.main;
	}
}
